/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-12-13 17:04:37
 * @LastEditors: cxguo
 * @LastEditTime: 2019-12-17 08:49:20
 */
import SecondMenu from '@/components/SecondMenu'

export default [
  {
    title: '销售',
    path: '/sale',
    component: SecondMenu,
    children: [
      {
        path: 'sold_list',
        name: 'SaleSoldList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '销售订单', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '销售退货', add: true }
      },
      {
        path: 'sold_add',
        component: () => import('@/views/sale/sold'),
        name: 'SaleSold',
        hidden: true,
        props: (route) => ({ operation: route.query.operation, salesoldId: route.query.salesoldId }),
        meta: { title: '新增销售订单' }
      },
      {
        path: 'return_add',
        component: () => import('@/views/sale/return'),
        name: 'SaleReturn',
        hidden: true,
        props: (route) => ({ operation: route.query.operation, salereturnId: route.query.salereturnId }),
        meta: { title: '新增销售退货' }
      }
    ]
  }
]
